<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>发布东阿<?php echo $cInfos['typename']; ?>,东阿信息港,东阿信息服务</title>

<?php include(DEDEMEMBER."/templets/head_inc.htm"); ?>
<meta name="description" content="发布东阿供求信息,东阿交友信息,东阿租房信息" />
<meta name="keywords" content="东阿县,东阿信息港,东阿房产信息,东阿招聘信息,发布供求信息,发布二手信息" />
<style>
#span_nativeplace2 { width:600px;  float:left; display:block;padding-bottom:5px;}
#span_nativeplace2 span{ font-size:14px; padding-left:4px;width:100px; height:23px; display:block; float:left;}
#span_nativeplace2 label{padding-left:4px;}

#span_infotype2 span{ cursor:pointer; height:20px ; line-height:20px; float:left; width: 80px; font-size:13px; padding-left: 10px; border-left:1px solid silver; border-top:1px solid silver; }

#infotype_detail{ margin-bottom:1px; width:700px; float:left; padding-bottom:1px; background-color: green; color:black;}
#infoshowtr{ font-size: 15px;}
#infotype_detail div { display:block;width:700px; float:left; padding-top:8px; padding-left: 10px; padding-right:10px;}
#infotype_detail div span { margin:4px; width:100px; float:left; display:block; height:20px; font-size:14px;}
#infotype_detail div span label { padding-left:5px;}
.infotitle{ background-color:#eeeeee;}


</style>
<script language='javascript' src='js/main.js'></script>
<script language="javascript">
<!--
ismember = 1;
$(document).ready( function()

{
nativepalce_init();
showendtime();
}
);
selinfot = 0;
selinfoi = 0;
function showendtime()
{
var now=new Date();
var year=now.getYear() + ($.browser.msie?0:1900);
var month=now.getMonth();
var day=now.getDate();
var hours=now.getHours();
var minutes=now.getMinutes();
var seconds=now.getSeconds();
$("#endtime").val( year+"-"+month+"-"+day+" "+hours+":"+minutes+":"+seconds );
}

function checkSubmit()
{

	if(document.form1.title.value==""){
		alert("<?php echo $cInfos['titlename']; ?>不能为空！");
		document.form1.title.focus();
		return false;
	}

	if(document.form1.typeid.value==0){
		alert("隶属栏目必须选择！");
		return false;
	}

	if(document.form1.typeid.options && document.form1.typeid.options[document.form1.typeid.selectedIndex].className!='option3')
	{
		alert("隶属栏目必须选择白色背景的项目！");
		return false;
	}

	if(document.form1.vdcode.value==""){
		document.form1.vdcode.focus();
		alert("验证码不能为空！");
		return false;
	}

	// 房屋
	//alert(selinfot);
	tv =$("#title").val();
	
	content = $("textarea[name=body]").val().replace(/\n/g, "<br />" );
	
	$("textarea[name=body]").val(content)
	
	if( selinfot == 2*500 )
	{
		if( selinfoi == 1001 ) pre="出租";
		if( selinfoi == 1002 ) pre="求租";
		if( selinfoi == 1003 ) pre="求购";
		if( selinfoi == 1004 ) pre="出售";
		if( selinfoi == 1005 ) pre="合租";
		if( selinfoi == 1006 ) pre="门面";
		
		s = pre;
		if( $("#sel1_1").val() != "" ) s+="/"+$("#sel1_1").val();
		if( $("#text1_1").val() !="0" ) s+="/"+$("#text1_1").val()+"元";
		if( $("#text1_2").val() !="0" ) s+= "/"+$("#text1_2").val()+"平米";
		if( $("#text1_3").val() !="" ) s+= "/"+$("#text1_3").val();
		s += "/" + $("#title").val();
		$("#rtitle").val(s);
	}else
	if( selinfot == 3 * 500 )
	{
		t = $('input:radio[name=r2]:checked').val();
		s = t;
		if ( $("#text2_1").val() != "0" ) s += "/" + $("#text2_1").val()+"元";
		s += "/" + tv;
		$("#rtitle").val(s);
	}else
	if( selinfot == 4 * 500 )
	{
		s = $("#sel3_1").val() ;
		s+= "/" + $("#text3_1").val()+'元';
		s+= "/" + $("#text3_2").val()+'人';
		s += "/" + tv;
		$("#rtitle").val(s);
	}else
	if( selinfot == 5 * 500 )
	{
		pre="";
		if( selinfoi==2501 ) pre="全职";
		if( selinfoi==2502 ) pre="兼职";
		if( selinfoi==2503 ) pre="实习";
		if( selinfoi == 2504 ) pre='家教';
		if( selinfoi == 2505 ) pre='其它';
		s = pre;
		if( $("#sel4_1").val()!="" ) s+= "/" + $("#sel4_1").val();
		if( $("#sel4_2").val()!="" ) s+= "/" + $("#sel4_2").val();
		s += "/" + tv;
		$("#rtitle").val(s);
	}else
	if( selinfot == 3500 )
	{
		s="";
		if( $("#sel5_1").val()!="" ) s+=  $("#sel5_1").val() + "/";
		if( $("#text5_1").val()!="" ) s+=  $("#text5_1").val()+"岁" + "/";
		s += tv;
		$("#rtitle").val(s);
	}else if( selinfot == 3000 )
	{
		pre="";
		
		t = $('input:radio[name=r6]:checked').val();
		if ( selinfoi == 3001) pre=t+"/";
		if ( selinfoi == 3002) pre=t+"/";
		s=pre;
		s += tv;
		$("#rtitle").val(s);
	}else
	{
		$("#rtitle").val(tv);
	}
	

	//alert($("#rtitle").val());
	return true;
}
-->
</script>
</head>
<body>
<?php include(DEDEMEMBER."/templets/head.htm"); ?>
<div class="wrapper lineT">
  <div class="mainBox">
    <div class="main">
      <?php include(DEDEMEMBER."/templets/menu.php"); ?>
      <div class="dedeMain">
        <div class="location"><span class="titAddChannel1 icon">发表</span><?php echo $cInfos['typename']; ?></div>
        <form  name="form1" action="archives_sg_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
          <input type="hidden" name="dopost" value="save" />
          <input type="hidden" name="channelid" value="-8" />
          <table width="100%" border="0" cellpadding="2" cellspacing="1" class="submit">
            <thead>
              <tr bgcolor="#F0FBE3">
                <th align=left colspan="4"><strong>信息参数：</strong> 
					<?php if(!$cfg_ml->IsLogin()) { 
					?><script>ismember=0;</script><a style="color:red" href="/member/index_do.php?fmdo=user&dopost=regnew" >友情提示:注册会员才可以删除贴子哦!</a>
					<?php } ?>
				</th>
              </tr>
            </thead>
            <tbody>
				
				<tr id="infoseltr">

  <td>
  <div ><h2>请先选择要发布的类型</h2></div>
  <input type='hidden' id='hidden_infotype' name='infotype' value='0' />

<div id="infotype_detail"></div>
<script language='javascript' type='text/javascript' src='/data/enums/infotype.js'></script>
<script language='javascript' type='text/javascript' >
function infotype_init()
{
	for( var it in   em_infotypes )
	{
		tid = Math.floor(it/500);
		if( $("#infod"+tid).length == 0 ) $("#infotype_detail").append( "<div id=infotypeshow"+tid+" ><div id=intotitle"+ tid + " class=infotitle ></div><div id=infod" +tid+" ></div></div>" );
		if( it % 500 > 0 )
		{
			name = em_infotypes[it];
			$("#infod"+tid).append("<span><input onclick=oninfotypesel("+it+")  type=radio name=infotype value="+it+"  id=infot"+it+" /><label id=ilabel"+it+" onclick=oninfotypesel("+it+") for=infot"+it+" >"+name+"</label></span>");
		}
		else
		{
			$("#intotitle" + tid ).append( em_infotypes[it] );
		}

	}

}
function seltype1( i )
{
	sel_info(i);
}
function oninfotypesel(i)
{
	$("#infotype_detail label").css("font-weight","");
	$("#infotype_detail label").css("font-size",14);
	$("#ilabel"+i).css("font-weight","bold");
	$("#ilabel"+i).css("font-size",15);
	$("#infot"+i).attr("checked","true");
	tid = Math.floor(i/500) * 500;
	$("#selinfoname").text( em_infotypes[tid] +" --> "+ $("#ilabel"+i).text()  );
	selinfot = tid;
	selinfoi = i;
	
	$(".infoex").hide();
	if( selinfot == 2*500 )
	{
		$("#infoex1").show();
	}
	else if( selinfot == 3*500)
	{
		$("#infoex2").show();
	}else if( selinfot == 4*500)
	{
		$("#infoex3").show();
	}else if( selinfot == 5*500)
	{
		$("#infoex4").show();
	}else if( selinfot == 7*500)
	{
		$("#infoex5").show();
	}
	else if( selinfot == 6*500)
	{
		if( selinfoi == 3001 || selinfoi == 3002 )
			$("#infoex6").show();
	}

	$("#infoseltr").hide('slow');
	$("#infoshowtr").show();
	$("#otherinfo").show();
	scroll(0,0);

	

}

function resel()
{
	$("#infoshowtr").hide();
	$("#otherinfo").hide();
	$("#infoseltr").show('slow');
}

function sel_info( i )
{
	
	$("#span_infotype2 span").css("background-color","");
	$("#span_infotype2 span").css("color","black");
	$("#span_infotype2 span").css("font-weight","");
	$("#infod"+i).show();
	c = "white";

	
		
	$("#infotype_detail").css("background-color", c);
	$("#btnsel"+i).css("background-color", c);
	$("#btnsel"+i).css("color", "black");
	$("#btnsel"+i).css("font-weight", "bold");
	
}

infotype_init();
sel_info(2);


</script>
</td>
</tr>
<tr id="infoshowtr" style="display:none" ><td>您选择的类型是: <span id="selinfoname" ></span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a onclick=resel() href="javascript:void(0);">重新选择</a> </td></tr>
</tbody>
</table>


<table style="display:none" id=otherinfo width="100%" border="0" cellpadding="2" cellspacing="1"  class="submit" >



              <tr>
                <th width="24%" height="28" align="right" bgcolor="#FFFFFF">信息标题</th>
                <td width="76%" colspan="3" bgcolor="#FFFFFF"><input class=text name="title1" type="text" id="title" size="30" class="nb" style='width:250px' onfocus=javascript:reloadyzm(); /><input name=title id="rtitle" type=hidden value=""  />
                  <font color="#FF0000">*</font> </td>
              </tr>
				<tr id=infoex1 refid=1 class=infoex ><th align="right">房屋信息</th><td> <select id=sel1_1 ><option selected=true value="" >-请选择-</option><option value=一居室 >一居室</option> <option value=二居室>二居室</option><option value=三居室>三居室</option><option value=四居室+>四居室+</option><option value=别墅>别墅</option><option value=写字间>写字间</option><option value=网点房>网点房</option><option value=商住两用>商住两用</option><option value=阁楼>阁楼</option><option value=复式>复式</option><option value=其它>其它</option></select>， 价格: <input class="text"  type=text class="text"  style="width:50px;" value=0 id=text1_1 />元， 大小<input type=text class="text"  type=text class="text"  style="width:50px;" value=0 id=text1_2 />平米 ，位置<input type=text class="text"  type=text class="text"  style="width:80px;" id=text1_3 /></td>
				</tr>

				<tr id=infoex2 class=infoex  ><th align="right">信息类型</th><td><input value=出售 checked=true type=radio id=r2_1 name=r2 /><label for=r2_1 >出售</label> <input name=r2 value=求购 type=radio id=r2_2 /> <label for=r2_2 >求购</label> ，价格 <input class="text"  type=text class="text" value=0 style="width:50px;" id=text2_1 />  元</td></tr>

				<tr id=infoex3 class=infoex ><th align="right">招聘类型</th><td> <select id=sel3_1 ><option selected=true value=全职 >全职</option><option value=兼职>兼职</option><option value=兼职/全职皆可 >兼职/全职皆可</option><option value=实习 >实习</option></select>，人数 <input class="text"  type=text value=1  style="width:50px;" id=text3_2 />人， 提供月薪<input class="text"  type=text value='面议'  style="width:50px;" id=text3_1 />  元</td></tr>

				<tr id=infoex4 class=infoex ><th align="right">最高学历</th><td> <select id=sel4_1 ><option selected=true value="" >-请选择-</option><option value=初中>初中</option><option value=高中 >高中</option><option value="专科" >专科</option><option value="本科" >本科</option><option value="研究生" >研究生</option><option value="博士" >博士</option></select>，求职意向 <select id=sel4_2 ><option selected=true value="" >-请选择-</option><option value=家教>家教</option><option value=业务/销售>业务/销售</option><option value=市场/营销>市场/营销</option><option value=教师/教授>教师/教授</option><option value=经营管理>经营管理</option><option value=财务/会计>财务/会计</option><option value=司机/导购/司仪>司机/导购/司仪</option><option value=广告/网站/设计>广告/网站/设计</option><option value=导游/翻译>导游/翻译</option><option value=客服/文员>客服/文员</option><option value=文案/策划>文案/策划</option><option value=其它职业>其它职业</option></select></td></tr>
				
				<tr id=infoex5 class=infoex ><th align="right">最高学历</th><td> <select id=sel5_1 ><option selected=true value="" >-请选择-</option><option value=初中>初中</option><option value=高中 >高中</option><option value="专科" >专科</option><option value="本科" >本科</option><option value="研究生" >研究生</option><option value="博士" >博士</option></select>，年龄 <input class="text" style="width:50px;"   type=text  id=text5_1 /> 岁</td></tr>

				<tr id=infoex6 class=infoex > <th align='right'>信息类型</th><td><input value=转让 checked=true type=radio id=r6_1 name=r6 /><label for=r6_1 >转让</label> <input name=r6 value=求购 type=radio id=r6_2 /> <label for=r6_2 >求购</label><input name=r6 value=求租 type=radio id=r6_3 /> <label for=r6_3 >求租</label><input name=r6 value=出租 type=radio id=r6_4 /> <label for=r6_4 >出租</label></td></tr>

			  <tr>
				 <input type='hidden' name='typeid' value='1' />
				 <td align="right" valign="top">请选择地区：</td>
  <td><!-- <input type='hidden' id='hidden_nativeplace' name='nativeplace' value='0' /> -->
<span id='span_nativeplace2'></span>
<script language='javascript' type='text/javascript' src='/data/enums/nativeplace.js'></script>
<script language="javascript" type="text/javascript">

function on_np_sel( i )
{
	$("#span_nativeplace2 label").css("font-size",14);
	$("#span_nativeplace2 label").css("font-weight","");
	$("#nplabel"+i).css("font-size",15);
	$("#nplabel"+i).css("font-weight","bold");
	$("#np"+i).attr("checked","true");
}

function nativepalce_init()
{
	for( var n in em_nativeplaces )
	{
	 if(n%500 == 0 ) continue;
	 $("#span_nativeplace2").append("<span ><input onclick=on_np_sel("+n+") id=np"+n+" type='radio' name='nativeplace' value='"+n+"' /><label onclick=on_np_sel("+n+") id=nplabel"+n+" for=np"+n+" >"+ em_nativeplaces[n]+"</label></span>");
	 }
	 $("#np501").attr("checked","true");
}
</script>
</td>
</tr>


<tr>
  <td align="right" valign="top">信息内容：<br /> 
  <script  language='javascript' type='text/javascript' >
  editortype=1;
  
  function shifteditor()
  {
	ed1='';
	if (ismember==0)
	{
		alert("只有会员可以使用高级编辑器!");
		return ;
	}
	
	if( $.browser.version == '6.0' )
	{
		alert("您使用 IE6.0 , 本功能不支持您的浏览器，请升级到新的版本!");
		return ;
	}
	
	ed2='<input type="hidden" id="body" name="body" value="" style="display:none" /><input type="hidden" id="body___Config" value="FullPage=false" style="display:none" /><iframe id="body___Frame" src="/include/FCKeditor/editor/fckeditor.html?InstanceName=body&amp;Toolbar=Member" width="100%" height="350" frameborder="0" scrolling="no"></iframe>';
	if( editortype == 1 )
	{
		editortype = 2;
		
		$("#edittd").html(ed2);
	}
	
  }
  </script>
  
  </td>
  <td id=edittd ><div>
  <script language='javascript' charset="utf-8" type='text/javascript' src='/member/js/kindeditor-3.3/kindeditor-3.3/kindeditor.js'></script>
  <SCRIPT LANGUAGE="JavaScript">
  <!--
	KE.show({
        id : 'contentbody',
		 items : [
        'undo', 'redo', 'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
        'removeformat', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
        'insertunorderedlist']
		}
	);
  //-->
  </SCRIPT>
  <a  onclick="shifteditor();" href="javascript:void(0);" />
  	<?php if(!$cfg_ml->IsLogin()) { 
					?>会员可以<?php } ?>切换到高级编辑器可以上传图片</a></div>
   <div>	<TEXTAREA id=contentbody NAME=body  style="width:600px;height:200px;visibility:hidden;"  > </TEXTAREA></div>
  </td >
<!--  <td><input type="hidden" id="body" name="body" value="" style="display:none" /><input type="hidden" id="body___Config" value="FullPage=false" style="display:none" /><iframe id="body___Frame" src="/include/FCKeditor/editor/fckeditor.html?InstanceName=body&amp;Toolbar=Member" width="100%" height="350" frameborder="0" scrolling="no"></iframe></td> -->
</tr>
<tr>
  <td align="right" valign="top">截止日期：</td>

  <td>
  <input type='hidden' name='dede_addonfields' value="nativeplace,stepselect;infotype,stepselect;body,htmltext;endtime,datetime;linkman,text;tel,text;email,text;address,text">
  <input name="endtime" value="" class=text type="text" id="endtime" style="width:250px" /></td>
</tr>
<tr>
  <td align="right" valign="top">联系人：</td>
  <td><input type='text' name='linkman' id='linkman' style='width:250px'  class='text' value='' />
</td>
</tr>
<tr>
  <td align="right" valign="top">联系电话：</td>
  <td><input type='text' name='tel' id='tel' style='width:250px'  class='text' value='' />为了方便别人能及时联系您，留下您的电话

</td>
</tr>
<tr>
  <td align="right" valign="top">电子邮箱：</td>
  <td><input type='text' name='email' id='email' style='width:250px'  class='text' value='' />
</td>
</tr>
<tr>
  <td align="right" valign="top">地址：</td>
  <td><input type='text' name='address' id='address' style='width:250px'  class='text' value='' />
</td>

</tr>





              <?php if($cInfos['dfcid']>0)
      {
      	echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />";
      }
      else
      {
      ?>
              <tr>
                <td height="28" align="center" bgcolor="#F7FDF0">隶属栏目：</td> 
                <td colspan="3" bgcolor="#F7FDF0"><?php
		$typeOptions = GetOptionList(0,$channelid);
		echo "<select name='typeid' style='width:350px' size='1'>\r\n";
		echo "<option value='0' selected>请选择栏目...</option>\r\n";
		echo $typeOptions;
		echo "</select>";
		?>
                  (只允许并且必须选择白色背景的项目<font color="#FF0000">*</font>) </td>
              </tr>
              <tr style='<?php if($cInfos['needpic']==0) echo 'display:none'; ?>'>
                <td height="28" align="center"  class='tdline'>缩略图：</td>
                <td colspan="3"  class='tdline'><input name="litpic" type="file" id="litpic" style="width:300px" onchange="SeePicNew('divpicview',this);"  />
                  <div id='divpicview' class='divpre'></div></td>
              </tr>
              <?php
      }
	


      //游客强制加验证码，会员则判断后台开关
      if(!$cfg_ml->IsLogin() || $cfg_vdcode_member=='Y')
      {
      ?>
              <tr id="seccode">
                <td align="right" valign="top">验证码：</td>
                <td><input class="text" name="vdcode" type="text" id="vdcode" size="10" style='width:50px;text-transform:uppercase;' />
                  <img id="yzm" src='' alt="验证码" width='50' height='20' align="absmiddle" /> <a onclick="javascript:reloadyzm()">看不清验证码?点击这里</a></td>
              </tr>
              <?php
      }
      else
      {
      	echo "<input name='vdcode' type='hidden' id='vdcode' value='notuse' />";
      }
      ?>
            </tbody>
            <tfoot>
              <tr>
                <td height="45">&nbsp;</td>
                <td height="45"><button class="button2" type="submit">提交</button>
                  <button class="button2 mL10" type="reset" onclick="location.reload();">重置</button></td>
              </tr>
            </tfoot>
          </table>
        </form>
      </div>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<?php include(DEDEMEMBER."/templets/foot.htm"); ?>
<script language="JavaScript">
		<!--
			function reloadyzm()
			{
				var timenow = new Date().getTime(); 
				document.getElementById('yzm').src='../include/vdimgck.php?'+timenow;
			}
		//-->
		</script>	
</body>
</html>
